package com.dailyblue.java.cloud.customer.feign.handler;

import com.dailyblue.java.cloud.commons.util.JsonResult;
import com.dailyblue.java.cloud.commons.util.ResultTool;
import org.springframework.stereotype.Component;

@Component
public class MyFallbackHandler {

    public static JsonResult fallbackMethodE(Throwable e) {
        return ResultTool.fail(500, "代码出现了错误," + e.getMessage());
    }
}
